package com.zf.yichat.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "packet_sale_view")
public class PacketSaleView implements Serializable {
    @Id
    private Long id;

    @Column(name = "packet_id")
    private Long packetId;

    @Column(name = "user_id")
    private Long userId;

    /**
     * 浏览次数
     */
    private Long count;

    private Date ctime;

    private static final long serialVersionUID = 1L;

    public PacketSaleView(Long id, Long packetId, Long userId, Long count, Date ctime) {
        this.id = id;
        this.packetId = packetId;
        this.userId = userId;
        this.count = count;
        this.ctime = ctime;
    }

    public PacketSaleView() {
        super();
    }

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return packet_id
     */
    public Long getPacketId() {
        return packetId;
    }

    /**
     * @param packetId
     */
    public void setPacketId(Long packetId) {
        this.packetId = packetId;
    }

    /**
     * @return user_id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取浏览次数
     *
     * @return count - 浏览次数
     */
    public Long getCount() {
        return count;
    }

    /**
     * 设置浏览次数
     *
     * @param count 浏览次数
     */
    public void setCount(Long count) {
        this.count = count;
    }

    /**
     * @return ctime
     */
    public Date getCtime() {
        return ctime;
    }

    /**
     * @param ctime
     */
    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }
}